import React from "react"
import { Route, Switch, Redirect } from "react-router-dom"
import "antd/dist/antd.css"
import { Button } from "antd"
import Home from '../src/pages/Home'
// import Lazy from "@/components/Lazy"

// const Home = Lazy(() => import("./pages/Home"))
// const Test001 = Lazy(() => import("@/pages/Test001"))

function App() {
  return (
    <>
      <Switch>
        <Route exact path="/" component={Home} />} />
       {/**<Route exact path="/test001" render={props => <Test001 {...props} />} /> */}
        <Redirect to="/" />
      </Switch>
    </>
  )
}

export default App
